﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BuXiaChu.OrderDishes.Model;

namespace BuXiaChu.OrderDishes.BLL.ModelExtensions
{
    public static class OrderInfoExtension
    {
        public static void GetAddressInfoFrom(this OrderInfoModel source, DeliveryAddressModel addressInfo)
        {
            source.UserId = addressInfo.UserId;
            source.Name = addressInfo.Name;
            source.Gender = addressInfo.Gender;
            source.MobileTelephone = addressInfo.MobileTelephone;
            source.Telephone = addressInfo.Telephone;
            source.CityId = addressInfo.CityId;
            source.AreaId = addressInfo.AreaId;
            source.Address = addressInfo.Address;
            source.InvoiceTitle = addressInfo.InvoiceTitle;         
        }
    }
}
